import request from '@/utils/request'

// 查询产学合作项目情况列表
export function listCollaboration(query) {
  return request({
    url: '/collaboration/collaboration/list',
    method: 'get',
    params: query
  })
}

// 查询产学合作项目情况详细
export function getCollaboration(iecId) {
  return request({
    url: '/collaboration/collaboration/' + iecId,
    method: 'get'
  })
}

// 新增产学合作项目情况
export function addCollaboration(data) {
  return request({
    url: '/collaboration/collaboration',
    method: 'post',
    data: data
  })
}

// 修改产学合作项目情况
export function updateCollaboration(data) {
  return request({
    url: '/collaboration/collaboration',
    method: 'put',
    data: data
  })
}

// 删除产学合作项目情况
export function delCollaboration(iecId) {
  return request({
    url: '/collaboration/collaboration/' + iecId,
    method: 'delete'
  })
}
